import 'package:flutter/material.dart';

class MyApp6 extends StatelessWidget {
  const MyApp6({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('COLUMN 组件'),
        // 文字颜色
        foregroundColor: Colors.white,
        backgroundColor: Colors.purple,
        // 文字居中
        centerTitle: true,
      ),
      body: Center(
        child: Container(
          width: 200,
          height: 200,
          color: Colors.red,
          child: Column(children: [
            Image.network(
              'https://yanxuan-item.nosdn.127.net/e529b6ab111ade9da9314867f98d360f.png',
            )
          ]),
        ),
      ),
    );
  }
}
